import request from '@/config/axios'

//创建等级维护
export const algorithmCreate = async (data) => {
  return await request.post({
    url: '/amp/algorithm-rule/create',
    data
  })
}
//删除等级
export const algorithmDelete = async (id) => {
  return await request.delete({
    url: '/amp/algorithm-rule/delete?id=' + id
  })
}
//获得等级
export const algorithmGet = async (id) => {
  return await request.get({
    url: '/amp/algorithm-rule/get?id=' + id
  })
}
//获得等级分页
export const algorithmPage = async (params) => {
  return await request.getOriginal({
    url: '/amp/algorithm-rule/page',
    params
  })
}
//等级修改
export const algorithmUpdate = async (data) => {
  return await request.put({
    url: '/amp/algorithm-rule/update',
    data
  })
}
//测试验证
export const algorithmTest = async (data) => {
  return await request.post({
    url: '/amp/algorithm-rule/test',
    data
  })
}
